public class NumberClassification {
    public static void main(String[] args) {
        int maxNum = 100, minNum = -100;

        System.out.println("奇数: ");
        for (int i = minNum; i <= maxNum; i++) {
            if (i % 2 != 0) System.out.print(i + " ");
        }

        System.out.println("\n偶数: ");
        for (int i = minNum; i <= maxNum; i++) {
            if (i % 2 == 0) System.out.print(i + " ");
        }

        System.out.println("\n3的倍数: ");
        for (int i = minNum; i <= maxNum; i++) {
            if (i % 3 == 0) System.out.print(i + " ");
        }

        System.out.println("\n去掉3的倍数的奇数: ");
        for (int i = minNum; i <= maxNum; i++) {
            if (i % 2 != 0 && i % 3 != 0) System.out.print(i + " ");
        }
    }
}

